package com.w2cx.selenium.testCase;

import org.testng.Assert;
import org.testng.annotations.Parameters;
import org.testng.annotations.Test;

public class testMarkCategoryManage extends CaseBase {

    @Test
    @Parameters({"categoryName"})
    public void testAddMarkCategory(String categoryName) {

        //添加标签分类
        mcmp.markCategoryAdd(categoryName);


        //判断元素是否添加成功
        Assert.assertTrue(mcmp.addMarkCategorySuccess(categoryName),"添加标签分类失败！");
        System.out.println("添加标签分类成功！");

    }

    @Test
    @Parameters({"categoryName"})
    public void testDelMarkCategory(String categoryName){
        //删除标签分类
        mcmp.delMarkCategory(categoryName);

        //判断删除是否成功
        Assert.assertTrue(mcmp.delMarkCategorySuccess(categoryName),"删除标签分类失败！");
        System.out.println("删除标签分类成功！");
    }




}
